import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/api/user/getUsers',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/api/user/edit',
    method: 'post',
    data
  })
}

export function delete1(data) {
  return request({
    url: '/api/user/delete',
    method: 'post',
    data:{
      id:data
    }
  })
}

export function insert(data) {
  return request({
    url: '/api/user/insert',
    method: 'post',
    data
  })
}